# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py3-flask-peewee
_pkgname=flask-peewee
pkgver=3.0.6
pkgrel=0
pkgdesc="Flask integration for peewee"
url="https://pypi.org/project/flask-peewee"
arch="noarch"
license="MIT"
depends="py3-flask py3-jinja2 py3-peewee py3-werkzeug py3-wtf-peewee
	py3-wtforms"
makedepends="py3-setuptools py3-gpep517 py3-wheel"
subpackages="$pkgname-pyc"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"

builddir="$srcdir"/$_pkgname-$pkgver

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
20c0296faf3986d6234750da4a91041450b1a403df58b51f343ff6154a323adfbf862335e57b54606e9e3ab16fe4ce043671f296c84212c095cdb589d1534158  flask-peewee-3.0.6.tar.gz
"
